package com.app.service;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.app.model.AnswerModel;
import com.app.model.OptionModel;
import com.app.model.QuestionAnswerModel;
import com.app.model.QuestionModel;
import com.app.vo.AnswerUserVo;
import com.app.vo.AnswerVo;
import com.app.vo.QuestionVo;

import java.util.LinkedHashSet;
import java.util.List;

public interface QuestionnaireService {
    QuestionVo getAll();

    void saveOption(JSONArray jsonArray, Integer userId);

    AnswerUserVo selectAnswer(Integer page, Integer limit, String keyword);

    AnswerVo selectAnswerContent(Integer userId,Integer page,Integer limit);

    void insertQuestionAndOption(OptionModel model);

    void updateQuestionAndOption(OptionModel model);

    void deleteQuestionAndOption(Integer id);

    List<QuestionModel> selectQuestion(String name);

    void updateStatus(Integer status,Integer id);

    int getCount();
}
